package com.top.ruizhong.entity

import com.module.lemlin.rxhttp.HttpServiceData
import java.io.Serializable

data class VideoListResponse(
    val data: MutableList<VideoList> = mutableListOf()
) : HttpServiceData() {
    var loadMore = false
}

data class VideoList(
    val adv_image: String,
    val adv_title: String,
    val cate_id: Int,
    val city: String,
    val comments: Int,
    val createtime: Int,
    val deletetime: Any,
    val description: String,
    val followed: Int,
    val id: Int,
    val likes: Int,
    val main_image: Any,
    val path: String,
    val province: String,
    val recommendswitch: Int,
    val shares: Int,
    val status: Int,
    val title: String,
    val type: Int,
    val user_id: Int
)

data class VideoCateListResponse(
    val data: MutableList<VideoCateList> = mutableListOf()
) : HttpServiceData()

data class VideoCateList(
    val id: Int,
    val name: String
)

data class VideoCateSetResponse(
    val data: Any
) : HttpServiceData() {
    var videoCateList: VideoCateList? = null
    var type: Int = 1
}

data class VideoDraftResponse(
    val data: VideoPage<VideoDraft>
) : HttpServiceData() {
    var loadMore = false
}

data class VideoPage<T>(
    val current_page: Int,
    val `data`: MutableList<T> = mutableListOf(),
    val last_page: Int,
    val per_page: String,
    val total: Int
)

data class VideoDraft(
    val createtime: Int,
    val description: String,
    val id: Int,
    val main_image: String,
    val path: String,
    val reject_reason: String,
    val review_time: Any,
    val title: String
) : Serializable {
    var isChecked: Boolean = false
}

data class VideoDetailsResponse(
    val data: VideoDetails
) : HttpServiceData()

data class VideoDetails(
    val adv_image: String,
    val adv_title: String,
    val cate_id: Int,
    val city: String,
    val createtime: Int,
    val deletetime: Any,
    val description: String,
    val id: Int,
    val main_image: String,
    val path: String,
    val province: String,
    val recommendswitch: Int,
    val reject_reason: Any,
    val review_time: Any,
    val status: Int,
    val title: String,
    val type: Int,
    val user_id: Int
)

data class VideoRequest(
    var video_id: String? = null,
    var cate_id: Int = 0,//分类
    var title: String? = null,//标题
    var description: String? = null,//描述
    var main_image: String? = null,//视频第一帧图片 相对路径
    var path: String? = null,//上传返回的地址 相对路径
    var province: String = "福建省",//省（同城要用到）
    var city: String = "福州市",//市 （同城要用到）
    var type: Int = 0,//类型：1普通2广告（广告权限使用用户信息的is_certified_merchant字段判断）
    var act: String? = null,//操作：1上传审核2存入草稿箱3私人草稿箱
    var adv_title: String? = null,//广告标题（type是2的时候必传）
    var adv_image: String? = null,//广告图片（type是2的时候必传）
    var path_bitmap: String? = null,
    var path_advert: String? = null,
    var path_video: String? = null,
    var action: Int? = null
) : Serializable